<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>

<div class="box">
	<img src="https://s3-ap-southeast-2.amazonaws.com/planespotter/${photo.photoName}" border="0"/>
</div>

<div class="box">
	<ul>
		<li>Aircraft: ${photo.aircraft.manufacturer}, ${photo.aircraft.model}, S/N:  ${photo.aircraft.serialNumber}</li>
		<li>Airport: ${photo.airport.name}, ${photo.airport.country} - <fmt:formatDate type="both" pattern="dd MMMM yyyy" value="${photo.dateTaken}" /></li>
		<li>Author: ${photo.registeredUser.fullName} - [<a href='<c:url value="/gallery/${photo.registeredUser.username}" />'>Gallery</a>]</li>
	</ul>
</div>